#include "widget.h"

#include <QApplication>
#include <QString>
#include <QFile>
#include <QDebug>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString skinPath = QString(":/skin.qss");


    QFile file(skinPath);
    if (file.open(QFile::ReadOnly))
    {
        QString styleSheet = QLatin1String(file.readAll());
        qApp->setStyleSheet(styleSheet);
        qDebug()<<styleSheet;
        file.close();
    }

    Widget w;
    w.show();
    return a.exec();
}
